Skip to content

fix(server-nestjs/nexus): fall back to public Nexus URL when internal URL is unset#2302

Open
KepoParis wants to merge 1 commit into
mainfrom
fix/nexus-internal-url-error
Open

fix(server-nestjs/nexus): fall back to public Nexus URL when internal URL is unset#2302
KepoParis wants to merge 1 commit into
mainfrom
fix/nexus-internal-url-error

Conversation

@KepoParis

Copy link
Copy Markdown
Contributor

Issues liées

Issues numéro:


Quel est le comportement actuel ?

Le NexusHttpClientService exige que la variable d'environnement NEXUS_INTERNAL_URL soit définie. Si elle est absente, une NexusError (NotConfigured) est levée immédiatement, même lorsqu'une URL publique Nexus (NEXUS_URL) est disponible et pourrait être utilisée.

Quel est le nouveau comportement ?

Le getter baseUrl utilise désormais config.getInternalOrPublicNexusUrl() : il privilégie l'URL interne (NEXUS_INTERNAL_URL) et se rabat sur l'URL publique (NEXUS_URL) si l'URL interne n'est pas définie. L'erreur NotConfigured n'est levée que si aucune des deux URLs n'est configurée, avec un message mis à jour (NEXUS_INTERNAL_URL or NEXUS_URL is required).

Cette PR introduit-elle un breaking change ?

Non. Les déploiements existants avec NEXUS_INTERNAL_URL définie conservent le même comportement. Le changement rend simplement la configuration plus permissive pour les environnements où seule NEXUS_URL est définie.

Autres informations

Aucune.

@KepoParis KepoParis added this to the 9.20.0 milestone Jul 10, 2026
@KepoParis KepoParis self-assigned this Jul 10, 2026
@KepoParis KepoParis added enhancement New feature or request bug Something isn't working labels Jul 10, 2026
@github-actions github-actions Bot added the built label Jul 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@KepoParis KepoParis force-pushed the fix/nexus-internal-url-error branch from 4b413ee to e0e93ad Compare July 10, 2026 16:51
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@KepoParis KepoParis marked this pull request as draft July 10, 2026 22:20
@StephaneTrebel StephaneTrebel marked this pull request as ready for review July 15, 2026 13:08
@StephaneTrebel StephaneTrebel self-requested a review July 15, 2026 13:08
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Hey !

The security scan report for the current pull request is available here.

@cloud-pi-native-sonarqube

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working built enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants